package base;

import java.lang.Integer;

public enum OPCODES {
	/**
     * Server to client opcodes.
     */
	CREATE_SHIP_CODE (0), MOVE_SHIP_CODE (1), INFORM_USER_ID_CODE (2), FIRE_TURRET_CODE (3),
	
    /**
     * Client to server opcodes.
     */
	ORDER_MOVE_SHIP (100);
	
    
	
	private int code;
	private OPCODES(int code) {
		this.code = code;
		
	}
	
	public byte getByte() {
		return new Integer(this.code).byteValue();
	}
}